package com.linkq.ipinyin.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.linkq.ipinyin.model.BcFile;
import com.linkq.ipinyin.service.FileService;
import com.linkq.ipinyin.vo.ResultInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @FileName BcFileController
 * @Description
 * @Author wangpeng
 * @date 2024-11-12
 **/

@RestController
@RequestMapping("file")
public class FileController {

    @Resource
    private FileService fileService;

    @PostMapping(value = "list")
    public ResultInfo queryFileList(@RequestBody BcFile bcFile) {
        return ResultInfo.success(fileService.selectList(new QueryWrapper<>()));
    }
}
